package com.sdy.healthcode.biz.model;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.sdy.common.model.BaseModel;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.sdy.common.utils.DateUtil;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 新冠肺炎分布区域表
 * </p>
 *
 * @author cgj
 * @since 2020-02-25
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
public class NcovArea extends BaseModel {
    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @TableId
    private Integer id;

    /**
     * 父ID
     */
    @ApiModelProperty(value = "父ID")
    private Integer parentId;

    /**
     * 省市
     */
    @ApiModelProperty(value = "省市")
    private String area;

    /**
     * 现有确诊
     */
    @ApiModelProperty(value = "现有确诊")
    private Integer exConfirmed;

    /**
     * 现有确诊昨日对比
     */
    @ApiModelProperty(value = "现有确诊昨日对比")
    private Integer exCoYday;

    /**
     * 累计确诊
     */
    @ApiModelProperty(value = "累计确诊")
    private Integer cuConfirmed;

    /**
     * 新增确诊/累计确诊较昨日对比
     */
    @ApiModelProperty(value = "新增确诊/累计确诊较昨日对比")
    private Integer cuCoYday;

    /**
     * 累计治愈
     */
    @ApiModelProperty(value = "累计治愈")
    private Integer cuCure;

    /**
     * 累计治愈昨日对比
     */
    @ApiModelProperty(value = "累计治愈昨日对比")
    private Integer cuCuYday;

    /**
     * 累计死亡
     */
    @ApiModelProperty(value = "累计死亡")
    private Integer cuDeath;

    /**
     * 累计死亡昨日对比
     */
    @ApiModelProperty(value = "累计死亡昨日对比")
    private Integer cuDeYday;

    /**
     * 数据来源
     */
    @ApiModelProperty(value = "数据来源")
    private String source;

    /**
     * 更新时间
     */
    @ApiModelProperty(value = "更新时间")
    @JsonFormat(pattern = DateUtil.DATETIME_FORMAT)
    private Date updateTime;

    /**
     * 更新日期
     */
    @ApiModelProperty(value = "更新日期")
    @JsonFormat(pattern = DateUtil.DATE_FORMAT)
    private Date statisticDate;

    /**
     * 确诊较昨日新增
     */
    @ApiModelProperty(value = "确诊较昨日新增")
    @TableField(exist = false)
    private int diagnosiscy;

    /**
     * 重症较昨日新增
     */
    @ApiModelProperty(value = "重症较昨日新增")
    @TableField(exist = false)
    private int icucy;

    /**
     * 死亡较昨日新增
     */
    @ApiModelProperty(value = "死亡较昨日新增")
    @TableField(exist = false)
    private int deathcy;

    /**
     * 治愈较昨日新增
     */
    @ApiModelProperty(value = "治愈较昨日新增")
    @TableField(exist = false)
    private int curecy;

}
